#include "Laplase.h"
#include "../utils/Logger.h"

Laplase::Laplase(int aperture) :
        aperture(aperture)
{
}

Laplase::~Laplase() {
}

IplImage* Laplase::apply(const IplImage* in) {
    Log << "Applying laplase effect: " <<
            aperture << endl;
    IplImage *out = cvCreateImage(cvSize(in->width, in->height), IPL_DEPTH_32F, in->nChannels);
    cvLaplace(in, out, aperture);
    return out;
}
